
export const setIsAuthenticated = ({commit},data)=>{
  commit('setIsAuthenticated',data)
}

export const setUser = ({commit},data)=>{
  commit('setUser',data)
}

export const setOpenid = ({commit},data)=>{
  commit('setOpenid',data)
}




  // // 8. 退出登录
  // async logOut({commit}){
  //   const result = await getLogout();
  //   console.log(result);
  //   if(result.success_code === 200){
  //     commit(RESET_USER_INFO);
  //   }
  // }

  // // 9. 请求购物车数据
  // async reqCartsGoods({commit}) {
  //   const result = await getCartsGoods();
  //   if(result.success_code === 200){
  //     commit(CART_GOODS_LIST, {cartgoods: result.message})
  //   }
  // }

